package com.ht.shop.dao;

import com.ht.shop.pojo.CartItem;


import java.sql.SQLException;
import java.util.List;

public interface CartDao {
    Long findCountByUidAndPid(String pid, long uid);

    void addCart(String pid, long uid, int num) throws SQLException;

    int updateNum(String pid, long uid, int num) throws SQLException;

    List<CartItem> findCartByUid(long uid);
    void  deleteByUid(long uid);
}
